package org.jeecg.modules.charge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.charge.entity.ChargeInvoiceMangroup;
import org.jeecg.modules.charge.vo.CheckOutMangroup;

import java.util.List;

/**
 * @Description: 票据组
 * @Author: jeecg-boot
 * @Date:   2019-07-08
 * @Version: V1.0
 */
public interface ChargeInvoiceMangroupMapper extends BaseMapper<ChargeInvoiceMangroup> {
    public List<ChargeInvoiceMangroup> selectByLimit(@Param("userId") String userId);

    /**
     *  重复检查SQL
     * @return
     */
    public Long duplicateCheckCountSql(CheckOutMangroup checkOutMangroup);
    public Long duplicateCheckCountSqlNoDataId(CheckOutMangroup checkOutMangroup);

    /**
     *  重复检查SQL
     * @return
     */
    public Long duplicateCheckPositionCountSql(CheckOutMangroup checkOutMangroup);
    public Long duplicateCheckPositionCountSqlNoDataId(@Param("checkOutMangroup") CheckOutMangroup checkOutMangroup,@Param("offId") String[] offId);

    /**
     *  重复检查SQL
     * @return
     */
    public Long duplicateCheckPeopleCountSql(@Param("checkOutMangroup")CheckOutMangroup checkOutMangroup);
    public Long duplicateCheckPeopleCountSqlNoDataId(@Param("checkOutMangroup") CheckOutMangroup checkOutMangroup,@Param("userId") String[] userId);
}
